--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Commit a3c8b6246b30b26b01526c978602346dd9ba605a
Parents : 7315eb3
Author : Mark Qvist <bc7291552be7a58f361522990465165c>
Date : 2026-05-21T03:34:20+02:00
Close/leave room with ctrl-w
Changes
Diff
diff --git a/nomadnet/ui/textui/Channels.py b/nomadnet/ui/textui/Channels.py
index e7f076c..94f244f 100644
--- a/nomadnet/ui/textui/Channels.py
+++ b/nomadnet/ui/textui/Channels.py
@@ -187,7 +187,7 @@ class ChannelsListShortcuts():
class ChannelsRoomShortcuts():
def __init__(self, app):
self.app = app
- self.widget = urwid.AttrMap(urwid.Text("[C-d] Send [C-l] Leave [C-k] Clear [C-u] Users [C-y] Channels [F8] Collapse Joins [Tab] Focus"), "shortcutbar")
+ self.widget = urwid.AttrMap(urwid.Text("[C-d] Send [C-w] Leave [C-k] Clear [C-u] Users [C-y] Channels [F8] Collapse Joins [Tab] Focus"), "shortcutbar")
class ChannelsDialogLineBox(urwid.LineBox):
@@ -386,7 +386,7 @@ class RoomMessageEdit(urwid.Edit):
self.delegate.send_message()
elif key == "ctrl k":
self.set_edit_text("")
- elif key == "ctrl l":
+ elif key == "ctrl w":
self.delegate.leave_room()
elif key == "ctrl u":
self.delegate.toggle_users()
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────